var wrap = document.getElementById('wrap');
wrap.style.width = document.documentElement.clientWidth + 'px';
wrap.style.height = document.documentElement.clientHeight + 'px';
var btn1 = document.getElementById('btn1');
var btn2 = document.getElementById('btn2');
var span1 = document.getElementById('span1');
//三个数随机
var arr=[87.21,91.47];
function randFn(max,min){
	return parseInt(Math.random()*(max-min+1)+min);
}
var a = randFn(1,0);
span1.innerHTML=arr[a]+"%";
btn1.addEventListener("touchstart",anWei,false);
btn2.addEventListener("touchstart",again,false);
function anWei(){
	window.open('http://www.baidu.com');
}
function again(){
	window.open('num2.html','_self');
}